package com.easy.service;

import com.easy.bean.User;
import com.easy.util.Page;

import java.util.List;

public interface IUserService {
    String doLogin(User user);

    List<User>getUser(User user, Page page);

    int addUser(User user);

    int delUser(int id);

    User getUserById(int id);

    int editUser(User user);

    int getCount(User user);

    User getImg(User user);

    int Reg(User user) throws Exception;

//    List<User> getUserUsername(User user);

    List<User>getUserByUsername(String username);
    int editPassword(String username,String password,String newpassword) throws Exception;
}
